#ifndef VIEWERWIDGET_H
#define VIEWERWIDGET_H

#include <QWidget>
#include <QTcpServer>
#include <QTcpSocket>

namespace Ui {
class ViewerWidget;
}

class ViewerWidget : public QWidget
{
    Q_OBJECT

public:
    explicit ViewerWidget(QWidget *parent = 0);
    ~ViewerWidget();
public slots:
    void readSocket();
private slots:
    void newConnection_slot();
    void socketDisconnect_slot();
private:
    Ui::ViewerWidget *ui;
    QTcpServer *m_tcpServer;
    QVector<QTcpSocket*> m_socketList;
};

#endif // VIEWERWIDGET_H
